#include "dialogselvardog.h"
#include "ui_dialogselvardog.h"
#include <QVector>

DialogSelVarDog::DialogSelVarDog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DialogSelVarDog)
{
    ui->setupUi(this);
}

DialogSelVarDog::~DialogSelVarDog()
{
    delete ui;
}

QVector<float> DialogSelVarDog::getFirstValue()
{
    QVector<float> var;
    var.append(ui->textEditFirstVar->toPlainText().toFloat());
    var.append(ui->textEditSecondVar->toPlainText().toFloat());
    if(var.value(0)==0 && var.value(1)==0)
    {
        var.clear();
        var.append(1);
        var.append(2);
    }
    return var;
}



void DialogSelVarDog::on_pushButtonOk_clicked()
{

}
